package com.baizhi.entity;

import java.io.Serializable;

public class Person implements Serializable {

    private Integer personId;
    private String personName;

    private Passport passport;

    public Person() {
    }

    public Person(Integer personId, String personName, Passport passport) {
        this.personId = personId;
        this.personName = personName;
        this.passport = passport;
    }

    public Integer getPersonId() {
        return personId;
    }

    public void setPersonId(Integer personId) {
        this.personId = personId;
    }

    public String getPersonName() {
        return personName;
    }

    public void setPersonName(String personName) {
        this.personName = personName;
    }

    public Passport getPassport() {
        return passport;
    }

    public void setPassport(Passport passport) {
        this.passport = passport;
    }

    @Override
    public String toString() {
        return "Person{" +
                "personId=" + personId +
                ", personName='" + personName + '\'' +
                ", passport=" + passport +
                '}';
    }
}
